﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BA2009.Entities
{
    public class Resource:EntityBase
    {

        [ColumnAttributes("ResourceID")]
        public int ResourceID { get; set; }

        [ColumnAttributes("FileName")]
        public string FileName { get; set; }

        [ColumnAttributes("ResourceTypeID")]
        public int ResourceTypeID { get; set; }

        [ColumnAttributes("Description")]
        public string Description { get; set; }

        [ColumnAttributes("NumberOfClicked")]
        public decimal NumberOfClicked { get; set; }

        [ColumnAttributes("Code")]
        public string Code { get; set; }

        [ColumnAttributes("AdSite")]
        public string AdSite
        {
             get;
             set;
        }

        public IList<int> Banners
        {
             get;
             set;
        }

        public bool IsChecked { get; set; }


        public override void Validate()
        {
            throw new NotImplementedException();
        }

        public override string TableName
        {
            get { return "Resource"; }
        }
    }
}
